package com.example.pack;

import org.json.JSONObject;

public class WebProject {
    // 项目名
    private String projectName;
    // SVN地址
    private String svnPath;
    // 项目路径
    private String projectPath;
    // classes文件在项目路径下的相对路径
    private String classPath;

    public WebProject(String projectName, String svnPath, String projectPath, String classPath) {
        this.projectName = projectName;
        this.svnPath = svnPath;
        this.projectPath = projectPath;
        this.classPath = classPath;
    }

    public WebProject(JSONObject jsonObject) {
        this.projectName = jsonObject.get("projectName").toString();
        this.svnPath = jsonObject.get("svnPath").toString();
        this.projectPath = jsonObject.get("projectPath").toString();
        this.classPath = jsonObject.get("classPath").toString();
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getSvnPath() {
        return svnPath;
    }

    public void setSvnPath(String svnPath) {
        this.svnPath = svnPath;
    }

    public String getProjectPath() {
        return projectPath;
    }

    public void setProjectPath(String projectPath) {
        this.projectPath = projectPath;
    }

    public String getClassPath() {
        return classPath;
    }

    public void setClassPath(String classPath) {
        this.classPath = classPath;
    }
}
